home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / daytime.zip / README < prev    next >
Text File  |  1995-12-07  |  3KB  |  57 lines

  1. This file documents the time and daytime server and client programs
  2. for IBM TCP/IP 2.0. There is one server program (the daytimed.exe
  3. daemon) and a client program (daytime.exe). The server implements the
  4. RFC 867 (daytime) and RFC 868 (time) services, both for TCP and UDP
  5. protocols. The client can use either service and either protocol to
  6. retrieve the time from another host and adjust the local clock.
  7.  
  8. While the daytime service is more intended for human use, the time
  9. service is meant for machine use, like in these programs. But the
  10. server and client support both services, for completeness. Also, they
  11. are named after the daytime service even though the time service is
  12. the preferred method, because naming them time and timed would be a
  13. bit impractical for the client program ...
  14.  
  15. Full source code is included, the programs can compiled with the emx
  16. package (gcc) or IBM C Set++ and require TCP/IP headers.
  17.  
  18. To install, copy both programs into \tcpip\bin or elsewhere in the
  19. PATH. You are now already ready to use the client program. Run it
  20. without arguments to get a short description. The default for it is to
  21. use the time service on the remote host via TCP protocol. You can
  22. specify a time offset, to adjust for the case that the remote time
  23. server is in a different time zone than the local machine. The offset
  24. is in seconds.
  25.  
  26. To use the server program, you must decide if you want to run it all
  27. the time as a standalone daemon or as a subservice from the inetd
  28. super-daemon.  The inetd method saves memory but makes the response
  29. time longer (since the server must be started for each request). In
  30. addition, when used with inetd, the server can only respond to
  31. requests via the TCP protocol, not to UDP requests, due to the way
  32. inetd is implemented under OS/2 and due to my own laziness. But then,
  33. usually the TCP protocol is used only anyway. If the server is called
  34. with -?, it also display a list of options, but they are all for use
  35. with inetd only (except that -U does not work with it, of course). 
  36.  
  37. To use the daytimed server with inetd, two lines must be added to
  38. \tcpip\etc\inetd.lst:
  39.  
  40.     daytime tcp daytimed -d
  41.     time tcp daytimed -t
  42.  
  43. That's all, then you have to restart inetd.
  44.  
  45. This code is in the public domain, but let me know if you make
  46. improvements to it or fix something that I missed.
  47.  
  48. Kai Uwe Rommel
  49.  
  50. --
  51. /* Kai Uwe Rommel      ARS Computer & Consulting GmbH, Muenchen, Germany *
  52.  * rommel@ars.de             CompuServe 100265,2651, Fax +49 89 324 4524 *
  53.  * rommel@leo.org (ftp.leo.org:/pub/comp/os/os2 maintenance)             */
  54.  
  55. DOS ... is still a real mode only non-reentrant interrupt
  56. handler, and always will be.                -Russell Williams
  57.